// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './utils/flexible'
// import Pagination from './components/Pagination'
// Vue.component('Pagination', Pagination)
// 全局组件
import vheader from '@/components/vheader'
import vfooter from '@/components/vfooter'
import 'babel-polyfill'
import constant from './common/constant.js'
// Vue.use(ElementUI)
Vue.config.productionTip = false
//动画效果
// import animated from 'animate.css';
// Vue.use(animated)

Vue.component('vheader', vheader)
Vue.component('vfooter', vfooter)
import VueStorage from 'vue-ls'//本地存储插件
let options = {
    namespace: 'vls__',
    name: 'ls',
    storage: 'local',
};


//按需引入elementui
import {
    Pagination,
    Select,
    Option,
    OptionGroup,
    Breadcrumb,
    BreadcrumbItem,
    Carousel,
    CarouselItem,
    Image,
    Message,
    Notification,
    Input,
    Loading
  } from 'element-ui';
  Vue.use(Pagination);
  Vue.use(Select);
  Vue.use(Option);
  Vue.use(OptionGroup);
  Vue.use(Breadcrumb);
  Vue.use(BreadcrumbItem);
  Vue.use(Carousel);
  Vue.use(CarouselItem);
  Vue.use(Image);
  Vue.use(Input);
  Vue.use(Loading);
  Vue.prototype.$Loading = Loading;
  Vue.prototype.$notify = Notification;
  Vue.prototype.$message = Message;
  Vue.use(VueStorage, options);
//system 服务地址 用于查看附件http://106.53.43.227:8002 http://124.71.185.18:8002 http://114.116.109.149:8002  https://www.hnqygxq.com:7007
 Vue.prototype.systemBaseUrl = process.env.NODE_ENV == 'production' ? "http://123.57.191.155:8088/tianhui/" : "http://123.57.191.155:8088/tianhui/"
//Vue.prototype.systemBaseUrl = process.env.NODE_ENV == 'production' ? "http://114.115.130.200:8081" : "http://114.115.130.200:8081"
// 全局组件挂载

Vue.prototype.$const = constant//this.$const.ServiceStatus.WaitAudit这样调用

/* eslint-disable no-new */

new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})